package cn.petplatform.dto;

/**
 * 响应给前端的一个报文
 * @author LNL
 * @date 2021/4/27 15:44
 */
public class ResponseDto {

    //响应码
    private String code;
    //日志信息
    private String msg;
    //数据
    private Object data;

    public ResponseDto() {

    }

    //没有数据时调用此构造
    public ResponseDto(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    //当data存在时调用此构造

    public ResponseDto(String code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }




}
